package com.example.imtoken.room.schema

import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * 钱包账号
 * @property id Int             主键
 * @property account String?    用户
 * @property password String?   密码
 * @property prompt String?     提示
 * @property token String?      token
 * @property address String?    钱包地址(唯一)
 * @property coin String?       钱包类型
 * @property mnemonic String?   助记词
 * @property publicKey String?  公共key
 * @property name String?       名字
 * @property type Int 1 -> 身份钱包 , 2 -> 创建钱包 , 3 -> 助记词导入 , 4 -> 私钥导入 , 5 -> KeyStore导入
 */
@Entity(tableName = "account")
data class AccountSchema(
    var account: String? = null,
    var password: String? = null,
    var prompt: String? = null,
    var token: String? = null,
    var address: String? = null,
    var coin: String? = null,
    var mnemonic: String? = null,
    var publicKey: String? = null,
    var name: String? = null,
    var type: Int
) {
    @PrimaryKey(autoGenerate = true)
    var id = 0
}